package com.app.simpsonux;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.*;

public class CallViewActivity extends Activity implements View.OnClickListener 
{
    String mUserId = "";
    String mCalleeId = "";
    
    protected void initOnClickListener()
    {
        ( (Button)findViewById( R.id.btnDrop ) ).setOnClickListener( this );
    }
    
    @Override
    protected void onCreate( Bundle savedInstanceState )
    {
        UXParcel sParcel = null;
        super.onCreate( savedInstanceState );
        setContentView( R.layout.callview );

        // get user id and callee id
        sParcel   = getIntent().getExtras().getParcelable( getString( R.string.intent_userinfo ) );
        mUserId   = sParcel.mUserId;
        mCalleeId = sParcel.mCalleeId;
        
        initOnClickListener();
        
        //SipManager sipManager = SipManager.newInstance(getApplicationContext());
    }
        
        @Override
        public void onClick(View v)
        {
                switch( v.getId() )
                {
                case R.id.btnDrop:
                    finish();
                }
        }
        
        public String getUserId()
    {
        return mUserId;
    }
};